/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controlador;

import Modelo.Record;
import Vista.VRecord;
import java.sql.SQLException;

/**
 *
 * @author USUARIO
 */
public class ContRecord {
    private Record R;
    private VRecord VR;


    ContRecord(Record MRd, VRecord VRd) throws SQLException {
        this.R = MRd;
        this.VR = VRd;
    }
    
    public void MostrarRecord() throws SQLException{
        
        this.R.MostrarRecordN1();
        for(int a = 0; a < 5; a++){
            this.VR.getNivel1().setValueAt(this.R.getNombre().elementAt(a), a, 0);
            this.VR.getNivel1().setValueAt(this.R.getTiempo().elementAt(a), a, 1);
        }
        
        this.R.MostrarRecordN2();
        for(int a = 0; a < 5; a++){
            this.VR.getNivel2().setValueAt(this.R.getNombre().elementAt(a), a, 0);
            this.VR.getNivel2().setValueAt(this.R.getTiempo().elementAt(a), a, 1);
        }
        
        this.R.MostrarRecordN3();
        for(int a = 0; a < 5; a++){
            this.VR.getNivel3().setValueAt(this.R.getNombre().elementAt(a), a, 0);
            this.VR.getNivel3().setValueAt(this.R.getTiempo().elementAt(a), a, 1);
        }
        
        
        
    }
    
    
    
    
}
